Component({
  options: {
    addGlobalClass: true,
  },
  properties: {
    questions: {
      type: Array,
      value: []
    },
    currentIndex: {
      type: Number,
      value: 0
    },
    submitText: {
      type: String,
      value: '交卷'
    },
    showSecondaryActions: {
      type: Boolean,
      value: true
    },
    showSubmitButton: {
      type: Boolean,
      value: true
    }
  },
  data: {

  },
  methods: {
    onFavoriteTap() {
      this.triggerEvent('favorite');
    },
    
    onReportIssueTap() {
      this.triggerEvent('reportissue');
    },
    
    onPrevTap() {
      this.triggerEvent('prev');
    },
    
    onNextTap() {
      this.triggerEvent('next');
    },
    
    onSubmitTap() {
      this.triggerEvent('submit');
    }
  }
});